package cn.fatgod.learn.thymeleaf.standard.enums;

import cn.fatgod.learn.thymeleaf.standard.interfaces.BinderType;

public enum PropertyType implements BinderType {
    STR("STR", "字符串"),
    TEXT("TEXT", "纯文本");

    /**
     * 码值
     */
    private final String code;

    /**
     * 描述
     */
    private final String desc;

    PropertyType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
